package com.ruoyi.hcrf.domain.service.storage;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.hcrf.bo.input.storage.StockFlowLogPageInBo;
import com.ruoyi.hcrf.bo.output.storage.StockFlowPageOutBo;
import com.ruoyi.hcrf.domain.StockFlow;
import com.ruoyi.hcrf.domain.mapper.storage.StockFlowLogMapper;
import com.ruoyi.hcrf.enums.PageFactory;
import org.springframework.stereotype.Service;

/**
 * 出入库流水表 业务层
 *
 * @author wanglf
 */
@Service
public class StockFlowLogService extends ServiceImpl<StockFlowLogMapper, StockFlow> {
    /**
     * 根据条件分页列表
     *
     * @param pageInBo 库位类型
     * @return 集合信息
     */
    public Page<StockFlowPageOutBo> selectStockFlowLogPage(StockFlowLogPageInBo pageInBo){
        //获取分页对象
        Page<StockFlowPageOutBo> page = PageFactory.createPage(pageInBo);
        return baseMapper.selectStockFlowLogPage(page,pageInBo);
    }

}
